package cn.zhl.设计模式.原型;

import java.io.Serializable;

/**
 * @program: demos
 * @description:
 * @author: 刘振华
 * @create: 2021-03-07 14:24
 **/
public class DeepObj implements Serializable, Cloneable{
	private int age;
	private String name;

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	protected Object clone() {
		Object rs = null;
		try {
			rs = super.clone();
		}catch (Exception e){
			e.printStackTrace();
		}
		return rs;
	}
}
